home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
Co-Cz
/
Comment Windoid XCMD.cpt
/
Comment Windoid XCMD
/
cards.xml
< prev
next >
Wrap
Text File
|
1991-04-01
|
7KB
|
37 lines
card_2880.xml
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
<card>
<id>2880</id>
<filler1>0</filler1>
<cantDelete> <false /> </cantDelete>
<showPict> <true /> </showPict>
<dontSearch> <false /> </dontSearch>
<owner>2721</owner>
<link rel="stylesheet" type="text/css" href="stylesheet_3315.css" />
<content>
<layer>background</layer>
<id>11</id>
<text><span class="style1">he </span><span class="style4">Floating</span><span class="style1"> </span><span class="style4">Comment XCMD</span><span class="style1"> is used for providing an interactive edit window to the user. It appears as a windoid and has an optional instruction string and optional scrolling edit field.The form of the command is:</span><span class="style7"> FloatingComment</span><span class="style5"> copyright, windowName, horzPos, vertPos, width, height, scroll, {instrStr, defaultStr}</span><span class="style1">where: </span><span class="style4">copyright</span><span class="style1"> is the string "©Dome" </span><span class="style4">windowName</span><span class="style1"> is the name of the window </span><span class="style4">horzPos</span><span class="style1"> is the horizontal coordinate of the initial window position </span><span class="style4">vertPos</span><span class="style1"> is the vertical coordinate of the initial window position </span><span class="style4">width</span><span class="style1"> is the width of the windoid </span><span class="style4">height</span><span class="style1"> is the height of the windoid </span><span class="style4">scroll</span><span class="style1"> is set to "true" if the edit box is scrollable, "false" if not </span><span class="style4">instrStr</span><span class="style1"> is an optional instruction string </span><span class="style4">defaultStr</span><span class="style1"> is an optional default edit string</span><span class="style4">This XCMD has the following special requirements:</span><span class="style1"> It relies on a handler </span><span class="style5">floatingWdwCallback</span><span class="style1"> existing somewhere in the stack hierarchy. (The function </span><span class="style5">SendCardMessage</span><span class="style1"> is used as a callback.) This handler is currently located in the background script. The global variable </span><span class="style5">gFloatingWdwResult</span><span class="style1"> is defined when the windoid is closed and contains the result of the user action: either </span><span class="style10">***Cancel***</span><span class="style1"> if the user clicked the </span><span class="style11">Cancel</span><span class="style1"> button, or the TextEdit string if the user clicked the </span><span class="style11">OK</span><span class="style1"> button. The global variable </span><span class="style5">gFloatingWdwName</span><span class="style1"> is defined when the windoid is closed and contains the name of the windoid which was acted upon.</span><span class="style4">Notes:</span><span class="style1"> A window name must be supplied. This allows for multiple comment windoids to be active simultaneously. The edit text can be changed anytime with the keyword “theText” using HyperCard’s standard format:</span><span class="style5">set "theText" of window "Comment" to "Hello World!"</span><span class="style1"> You may also retrieve the edit text using HyperCard’s standard format:</span><span class="style5">get "theText" of window "Comment"</span><span class="style1"> You may show or hide the windoid or move its position using HyperCard’s “loc” and “visible” commands. There is a close box with this windoid. If the user clicks in it, the XCMD checks to see if any changes have been made. If so, an alert is presented to the user. If not, the windoid is closed as if the user pressed </span><span class="style11">Cancel</span><span class="style1">. The windoid fully supports the cut, copy and paste functions. The window is closed when the user clicks the </span><span class="style11">OK</span><span class="style1"> or </span><span class="style11">Cancel</span><span class="style1"> button, but to close the window from a script, use HyperCard’s “close window” command:</span><span class="style5">close window "Comment"</span><span class="style1"> The HyperCard variable </span><span class="style7">the result</span><span class="style1"> will be set to various error messages in the event that the XCMD fails.</span><span class="style4">Extras:</span><span class="style1"> </span><span class="style11">This windoid has a built-in help feature.</span><span class="style1"> If the user supplies improper parameters, the windoid will appear with help information in the edit field! To test this feature, simple change the string “©Dome” to “Dome.”</span></text>
</content>
<content>
<layer>background</layer>
<id>1</id>
<text>Floating Comment Windoid</text>
</content>
<content>
<layer>background</layer>
<id>26</id>
<text>by Jim Parshallof Dome Software Corporation</text>
</content>
<content>
<layer>background</layer>
<id>30</id>
<text><span class="style1">he Floating Comment XCMD was written by:</span><span class="style4">Jim Parshallof Dome Software Corporation655 W. Carmel Drive, Suite 151Carmel, IN 46032317-573-8100</span><span class="style1"></span><span class="style4">Copyright ©1991Dome Software Corporation</span><span class="style1">This is a tool provided free to HyperCard developers for </span><span class="style11">non-commercial use</span><span class="style1">.Jim Parshall is a Senior Consultant at Dome. The son of two wonderful teachers, he received his B.S.E.E. from GMI Engineering & Management Institute in 1988. He has been programming on the Macintosh for several years using C, Object-C and HyperTalk.Dome Software Corporation is an Indianapolis-based consulting firm which specializes in the strategic application of information technology. It is a leader in the use of object- oriented design and development tools.This XCMD was written in Think C™. Copyright ©1989 Symantec Corporation.Now, our lawyers insisted that we include this:</span><span class="style4">NEITHER JIM PARSHALL NOR DOME SOFTWARE CORPORATION MAKES ANY WARRANTIES PERTAINING TO THIS XCMD, WHETHER EXPRESSED OR IMPLIED, INCLUDING THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.IN NO EVENT SHALL JIM PARSHALL OR DOME SOFTWARE CORPORATION BE LIABLE FOR ANY CONSEQUENTIAL, INDIRECT OR SIMILAR DAMAGES, INCLUDING BUT NOT LIMITED TO ANY LOST PROFITS OR LOST DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS XCMD.</span></text>
</content>
<name></name>
<script></script>
</card>